package com.lzh.others.designmode.factorymod.simpleFactoryMod;

/**
 * @Description: 静态工厂
 * @Author: LiuZiHao
 * @Date: 2022/11/7 14:06
 */
public class ChartFactory2 {

    public static BarChart createBarChart() {
        return new BarChart();
    }

    public static PieChart createPieChart() {
        return new PieChart();
    }

    public static LineChart createLineChart() {
        return new LineChart();
    }
}
